package ar.com.cema.methodology.analyzer.services;


import java.util.Collection;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import ar.com.cema.methodology.analyzer.model.Variable;
import ar.com.cema.methodology.analyzer.services.beans.MethodologyUsageReport;
import ar.com.cema.methodology.analyzer.services.beans.ProjectConfiguration;
import ar.com.cema.methodology.analyzer.services.business.MethodologyUsageBO;

@Repository
public class MethodologyUsageServiceImpl implements MethodologyUsageService {

	@Autowired
	private MethodologyUsageBO methodologyUsageBO;

	public void setMethodologyUsageBO(MethodologyUsageBO methodologyUsageBO) {
		this.methodologyUsageBO = methodologyUsageBO;
	}

	@Override
	public Collection<Variable> listVariables() {
		return methodologyUsageBO.listVariables();
	}

	@Override
	public MethodologyUsageReport generateReportFor(ProjectConfiguration projectConfiguration) {
		return methodologyUsageBO.generateReportFor(projectConfiguration);
	}
}